package com.settlement.system.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.settlement.system.model.entity.SysAuditRule;
import com.baomidou.mybatisplus.extension.service.IService;
import com.settlement.system.model.form.AuditRuleForm;
import com.settlement.system.model.form.UserForm;
import com.settlement.system.model.query.AuditRulePageQuery;

import java.util.List;

/**
 * <p>
 * 标准核销表 服务类
 * </p>
 *
 * @author huangrensen
 * @since 2023-08-14
 */
public interface SysAuditRuleService extends IService<SysAuditRule> {

    Page<SysAuditRule> getAuditRulePage(AuditRulePageQuery queryParams);

    /**
     * 新增规则
     *
     * @param ruleForm 规则的表单对象
     * @return
     */
    boolean saveRule(AuditRuleForm ruleForm);

    /**
     * 修改规则
     *
     * @param ruleId   规则ID
     * @param ruleForm 规则表单对象
     * @return
     */
    void updateRule(Long ruleId, AuditRuleForm ruleForm);

    /**
     * 删除规则
     *
     * @param idsStr 规则ID，多个以英文逗号(,)分割
     * @return
     */
    boolean deleteRules(String idsStr);

    AuditRuleForm getRoleFormData(Long ruleId);

    List<SysAuditRule> getAll();
}
